package com.gree.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gree.order.entity.OrderGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {

    /**
     * 批量添加订单商品信息
     * @param orderGoodsList
     * @return
     */
    int insertOrderGoodsBatch(@Param("orderGoodsList") List<OrderGoods> orderGoodsList);
}
